package com.mall.service;

import com.mall.po.Order;

import java.util.List;

/**
 * @author mahaoqi
 * @ClassName OrderService
 * @Description TODO
 * @Date 2021/1/7 11:47
 * @Version 1.0
 **/
public interface OrderService {


    /**
     * @Author mahaoqi
     * @Description 添加
     * @Date 2021/1/7 14:04
     * @Param [order]
     * @return boolean
     **/
    public Boolean addOrder(Order order);

    /*
     * @Author mahaoqi
     * @Description 根据id删除
     * @Date 2021/1/7 14:07
     * @Param [orderid]
     * @return boolean
     **/
    public Boolean removeById(Integer orderid);

    /*
     * @Author mahaoqi
     * @Description 修改
     * @Date 2021/1/7 14:10
     * @Param [order]
     * @return java.lang.Boolean
     **/
    public Boolean modifyOrder(Order order);

    /*
     * @Author mahaoqi
     * @Description 查找
     * @Date 2021/1/7 14:36
     * @Param [orderid]
     * @return com.mall.po.Order
     **/
    public Order findByid(Integer orderid);

    /*
     * @Author mahaoqi
     * @Description 分页
     * @Date 2021/1/7 14:58
     * @Param [i, limit]
     * @return java.util.List<com.mall.po.Order>
     **/
    public List<Order> findList(int i, Integer limit);

    /*
     * @Author mahaoqi
     * @Description 查找总记录
     * @Date 2021/1/7 15:05
     * @Param []
     * @return java.lang.Integer
     **/
    public Integer findCount();

    /*
     * @Author mahaoqi
     * @Description 批量删除
     * @Date 2021/1/7 15:48
     * @Param [orderids]
     * @return boolean
     **/
    public boolean removeBatch(Integer[] orderids);
}
